import * as staffinformationApi from '@/api/staffinformation'

const state = {
  staffinformationList: []
}
const mutations = {
  SET_GETSTAFFINFORMATIONLIST_LIST(state, newValue) {
    state.staffinformationList = newValue
  }
}

const actions = {
  async updategetstaffinformationList({ commit }, id) {
    const res = await staffinformationApi.getStaffInformation(id)
    commit('SET_GETSTAFFINFORMATIONLIST_LIST', res)
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
